package cn.bugstack.trigger.http;

import cn.bugstack.api.dto.NotifyRequestDTO;
import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.*;

/**
 * @Author: 代码的路
 * @Date: 2025/3/5 15:13
 * @Param:
 * @Return:
 * @Description:
 **/
@Slf4j
@RestController
@CrossOrigin(origins = "*", maxAge = 3600)
@RequestMapping("/api/v1/mock")
public class MockApiClientController {


    @RequestMapping(value = "group_buy_notify",method = RequestMethod.POST)
    private String groupBuyNotify(@RequestBody  NotifyRequestDTO requestDTO){
       log.info("模拟测试第三方服务接受拼团回调{}", JSON.toJSONString(requestDTO));
       return "success";
    }
}
